package org.wyn.mongodb.bean;

import org.bson.types.ObjectId;
import org.wyn.common.Table;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Indexed;
import com.google.code.morphia.utils.IndexDirection;
/**
 * 用户详细资料实体类
 * @author wyn
 *
 */
@Entity(value = Table.CollectionName.USER_DETAIL, noClassnameStored = true)
public class UserDetail {
	/**
	 * 测试方法，用于生成一个UserDetail对象
	 * @param userName
	 * @return
	 */
	public static UserDetail getTestInstance(String userName,String gender){
		UserDetail ud = new UserDetail();
		//基本信息
		ud.userName = userName;
		ud.gender = gender;
		ud.realName = "吴明";
		ud.birthYear = "1988";
		ud.birthMonth = "07";
		ud.birthDay = "29";
		ud.homeProvince = "河南";
		ud.homeCity = "商丘";
		//学校信息
		ud.university= "南京大学";
		ud.universityYear = "2006";
		ud.universityDepartment = "计算机科学与技术系";
		ud.highSchool = "河南省实验中学";
		ud.highSchoolYear = "2003";
		ud.juniorSchool = "商丘一中";
		ud.juniorSchoolYear = "2000";
		ud.primarySchool = "文化路小学";
		ud.primarySchoolYear = "1995";
		//个人信息
		ud.hobby = "看电视 睡觉 打游戏";
		ud.music = "杰克逊";
		ud.movie = "休格兰特 施瓦辛格 成龙";
		ud.game = "魔兽世界";
		ud.comic = "火影忍者";
		ud.sport = "篮球";
		ud.book = "算法导论 《三国演义》";
		//联系方式
		ud.qq = "554620413";
		ud.msn = "";
		ud.mobilephone = "13764260797";
		ud.personalSite = "";
		ud.visitCount = 0;
		return ud;
	}
	//-----------从User继承的属性----
	@Id
	@Indexed(value = IndexDirection.ASC)
	private String userName = "";
	@Indexed(value = IndexDirection.ASC)
	private String realName = "";
	private String gender = "";
	
	//-------------基本信息----------
	private String birthYear = "";
	private String birthMonth = "";
	private String birthDay = "";
	private String homeProvince = "";
	private String homeCity = "";
	/**头像图片的fileId*/
	private ObjectId portrait = new ObjectId();
	/**用户"状态"*/
	private String status = "";
	private long statusCreateTime;
	//--------------学校信息------
	private String university = "";
	private String universityYear = "";
	private String universityDepartment = "";
	private String highSchool = "";
	private String highSchoolYear = "";
	private String juniorSchool = "";
	private String juniorSchoolYear = "";
	private String primarySchool = "";
	private String primarySchoolYear = "";
	//--------------个人信息------
	private String hobby = "";
	private String music = "";
	private String movie = "";
	private String game = "";
	private String comic = "";//动漫
	private String sport = "";
	private String book = "";
	//--------------联系方式------
	private String qq = "";
	private String msn = "";
	private String mobilephone = "";
	private String personalSite = "";
	//其他信息
	private int visitCount;//被访问的次数
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getBirthYear() {
		return birthYear;
	}
	public void setBirthYear(String birthYear) {
		this.birthYear = birthYear;
	}
	public String getBirthMonth() {
		return birthMonth;
	}
	public void setBirthMonth(String birthMonth) {
		this.birthMonth = birthMonth;
	}
	
	public long getStatusCreateTime() {
		return statusCreateTime;
	}
	public void setStatusCreateTime(long statusCreateTime) {
		this.statusCreateTime = statusCreateTime;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getBirthDay() {
		return birthDay;
	}
	public void setBirthDay(String birthDay) {
		this.birthDay = birthDay;
	}
	public String getHomeProvince() {
		return homeProvince;
	}
	public void setHomeProvince(String homeProvince) {
		this.homeProvince = homeProvince;
	}
	public String getHomeCity() {
		return homeCity;
	}
	public void setHomeCity(String homeCity) {
		this.homeCity = homeCity;
	}
	public String getUniversity() {
		return university;
	}
	public void setUniversity(String university) {
		this.university = university;
	}
	public String getUniversityYear() {
		return universityYear;
	}
	public void setUniversityYear(String universityYear) {
		this.universityYear = universityYear;
	}
	public String getUniversityDepartment() {
		return universityDepartment;
	}
	public void setUniversityDepartment(String universityDepartment) {
		this.universityDepartment = universityDepartment;
	}
	public String getHighSchool() {
		return highSchool;
	}
	public void setHighSchool(String highSchool) {
		this.highSchool = highSchool;
	}
	public String getHighSchoolYear() {
		return highSchoolYear;
	}
	public void setHighSchoolYear(String highSchoolYear) {
		this.highSchoolYear = highSchoolYear;
	}
	public String getJuniorSchool() {
		return juniorSchool;
	}
	public void setJuniorSchool(String juniorSchool) {
		this.juniorSchool = juniorSchool;
	}
	public String getJuniorSchoolYear() {
		return juniorSchoolYear;
	}
	public void setJuniorSchoolYear(String juniorSchoolYear) {
		this.juniorSchoolYear = juniorSchoolYear;
	}
	public String getPrimarySchool() {
		return primarySchool;
	}
	public void setPrimarySchool(String primarySchool) {
		this.primarySchool = primarySchool;
	}
	public String getPrimarySchoolYear() {
		return primarySchoolYear;
	}
	public void setPrimarySchoolYear(String primarySchoolYear) {
		this.primarySchoolYear = primarySchoolYear;
	}
	public String getHobby() {
		return hobby;
	}
	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
	public String getMusic() {
		return music;
	}
	public void setMusic(String music) {
		this.music = music;
	}
	public String getMovie() {
		return movie;
	}
	public void setMovie(String movie) {
		this.movie = movie;
	}
	public String getGame() {
		return game;
	}
	public void setGame(String game) {
		this.game = game;
	}
	public String getComic() {
		return comic;
	}
	public void setComic(String comic) {
		this.comic = comic;
	}
	public String getSport() {
		return sport;
	}
	public void setSport(String sport) {
		this.sport = sport;
	}
	public String getBook() {
		return book;
	}
	public void setBook(String book) {
		this.book = book;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public String getMobilephone() {
		return mobilephone;
	}
	public void setMobilephone(String mobilephone) {
		this.mobilephone = mobilephone;
	}
	public String getPersonalSite() {
		return personalSite;
	}
	public void setPersonalSite(String personalSite) {
		this.personalSite = personalSite;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public int getVisitCount() {
		return visitCount;
	}
	public void setVisitCount(int visitCount) {
		this.visitCount = visitCount;
	}
	public ObjectId getPortrait() {
		return portrait;
	}
	public void setPortrait(ObjectId portrait) {
		this.portrait = portrait;
	}
}
